package cn.stylefeng.guns.modular.basic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 仓库表（原系统：库房表）
 */
@Data
@TableName("basic_warehouse")
public class BasicWarehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 运营部id
     */
    @TableField("warehouse_operate_id")
    private Integer warehouseOperateId;

    /**
     * 所属运营部
     */
    @TableField("warehouse_operate_name")
    private String warehouseOperateName;

    /**
     * 仓库名称（原系统：库房名称）
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 仓库编号（原系统：库房编号）
     */
    @TableField("warehouse_number")
    private String warehouseNumber;

    /**
     * 可用面积
     */
    @TableField("warehouse_canmeasure")
    private String warehouseCanmeasure;

    /**
     * 面积
     */
    @TableField("warehouse_measure")
    private String warehouseMeasure;

    /**
     * 详细地址
     */
    @TableField("warehouse_address")
    private String warehouseAddress;

    /**
     * 经度
     */
    @TableField("longitude")
    private String longitude;

    /**
     * 维度
     */
    @TableField("latitude")
    private String latitude;

    /**
     * 联系人
     */
    @TableField("warehouse_contacts")
    private String warehouseContacts;

    /**
     * 联系电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 仓储类型（零售）
     */
    @TableField("warehouse_types")
    private String warehouseTypes;

    /**
     * 仓库类型（存储仓、退货仓、不良仓）
     */
    @TableField("warehouse_type")
    private String warehouseType;

    /**
     * 仓库状态
     */
    @TableField("warehouse_state")
    private String warehouseState;

    /**
     * 备注
     */
    @TableField("warehouse_notes")
    private String warehouseNotes;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 新零帮仓库id
     */
    @TableField("warehouse_xlb_id")
    private String warehouseXlbId;



    @Override
    public String toString() {
        return "BasicWarehouse{" +
        "id=" + id +
        ", warehouseOperateId=" + warehouseOperateId +
        ", warehouseOperateName=" + warehouseOperateName +
        ", warehouseName=" + warehouseName +
        ", warehouseNumber=" + warehouseNumber +
        ", warehouseCanmeasure=" + warehouseCanmeasure +
        ", warehouseMeasure=" + warehouseMeasure +
        ", warehouseAddress=" + warehouseAddress +
        ", warehouseContacts=" + warehouseContacts +
        ", warehouseType=" + warehouseType +
        ", warehouseState=" + warehouseState +
        ", warehouseNotes=" + warehouseNotes +
        ", version=" + version +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", deliverId=" + deliverId +
        ", warehouseXlbId=" + warehouseXlbId +
        "}";
    }
}
